package de.unidue.langtech.teaching.pp.example.pipeline;

import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.SimplePipeline;




import de.unidue.langtech.teaching.pp.example.BaselineExample;
//import de.unidue.langtech.teaching.pp.example.WhitespaceTokenizer;
//import de.unidue.langtech.teaching.pp.example.EvaluatorExample;
import de.unidue.langtech.teaching.pp.example.XML_Reader;

public class BasicPipeline
{

    public static void main(String[] args)
        throws Exception
    {
        SimplePipeline.runPipeline(
                CollectionReaderFactory.createReader(
                        XML_Reader.class,
                        XML_Reader.PARAM_INPUT_FILE, "src/copa-dev.xml"
                ),
                AnalysisEngineFactory.createEngineDescription(BaselineExample.class)
                //,AnalysisEngineFactory.createEngineDescription(WhitespaceTokenizer.class)
                //,AnalysisEngineFactory.createEngineDescription(EvaluatorExample.class)
        );
    }
}
